const state = {
    userInfo: '',
    userName: '',
    nngUserId: '',
    groupInfo: {},
    avatarUrl: '',
    roleInfo: {}
}

// 从locastroag中读取token
function getToken(){
    return window.localStorage.getItem('token')
}
// 从locastroag中读取userId
function getUserId() {
    return window.localStorage.getItem('userId')
}
// 从locastroag中读取nngUserId
function getNngUserId(){
    return window.localStorage.getItem('nngUserId')
}

// 从locastroag中读取groupInfo
function getGroupInfo() {
    return JSON.parse(window.localStorage.getItem('groupInfo'))
}

export default state
